Skip to content

Add Tikz with native beamer background#13

Open
StatPal wants to merge 2 commits into
subroy13:masterfrom
StatPal:feat/tikz-backend
Open

Add Tikz with native beamer background#13
StatPal wants to merge 2 commits into
subroy13:masterfrom
StatPal:feat/tikz-backend

Conversation

@StatPal
Copy link
Copy Markdown
Contributor

@StatPal StatPal commented May 18, 2026

Summary

Native TikZ backend for beamer export -- scene.export_beamer(backend="tikz") emits inline TikZ drawing commands instead of embedded PDF images. Also adds scene.render_tikz() for standalone TikZ output. PRimary version.

Type of change

  • Bug fix
  • New feature / primitive / animation
  • Refactor / internal improvement
  • Docs / tooling / tests only

Checklist

  • Tests added or updated for every changed behaviour
  • All tests pass: poetry run pytest
  • Ruff and mypy are clean: poetry run ruff check src/ and poetry run mypy src/handanim --no-strict-optional
  • A new example added to examples/ if this introduces a user-facing feature
  • CHANGELOG.md updated under [Unreleased]
  • repo_overview.md updated if the architecture or file layout changed

Testing notes

35 new tests in tests/core/test_tikz_renderer.py covering: coordinate transforms (Y-flip, scaling), colour cache/deduplication, all OpsTypes (line, curve, quad_curve, close_path, dot, fill mode, opacity, partial ops, metadata), tikzpicture structure, Scene integration (render_tikz, export_beamer with both backends), and 2 pdflatex compilation tests that verify the output actually compiles to PDF. All 341 tests pass with no regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant